import 'app_file_desc.dart';

class AppFileListAdapter {
  final List<AppFileDesc> _files = [];
  AppFileDesc currentDir = AppFileDesc(name: 'root');
  String dirPath = "";

  int get count => _files.length;

  bool get isEmpty => _files.isEmpty;

  bool get isNotEmpty => _files.isNotEmpty;

  setFiles(List<AppFileDesc> files) {
    _files.clear();
    _files.addAll(files);
  }

  List<AppFileDesc> get files => _files;
}
